<template>
  <div>
    <el-row style="margi-top: 20px">
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="pDgVisible = true" class="txbutton">
            参数p
          </el-button>
        </div>
        <el-dialog :modal="false" title="参数p列表" :visible.sync="pDgVisible">
          <el-form>
            <el-form-item label="请输入p[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数,如12.3"
                v-model="obj.p[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入p[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.p[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入p[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.p[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入p[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.p[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="pDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="pDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="kDgVisible = true" class="txbutton">
            参数k
          </el-button>
        </div>
        <el-dialog :modal="false" title="参数k列表" :visible.sync="kDgVisible">
          <el-form>
            <el-form-item label="请输入k[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数，如12.3"
                v-model="obj.k[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入k[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.k[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入k[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.k[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入k[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.k[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="kDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="kDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="tlDgVisible = true" class="txbutton">
            参数Tol
          </el-button>
        </div>
        <el-dialog
          :modal="false"
          title="参数Tol列表"
          :visible.sync="tlDgVisible"
        >
          <el-form>
            <el-form-item label="请输入Tol[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数，如12.3"
                v-model="obj.Tol[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tol[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tol[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tol[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tol[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tol[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tol[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="tlDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="tlDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="tuDgVisible = true" class="txbutton">
            参数Tou
          </el-button>
        </div>
        <el-dialog
          :modal="false"
          title="参数Tou列表"
          :visible.sync="tuDgVisible"
        >
          <el-form>
            <el-form-item label="请输入Tou[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数，如12.3"
                v-model="obj.Tou[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tou[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tou[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tou[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tou[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tou[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tou[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="tuDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="tuDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
    </el-row>
    <el-row :gutter="0">
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="tbDgVisible = true" class="txbutton">
            参数Tb
          </el-button>
        </div>
        <el-dialog
          :modal="false"
          title="参数Tb列表"
          :visible.sync="tbDgVisible"
        >
          <el-form>
            <el-form-item label="请输入Tb[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数，如12.3"
                v-model="obj.Tb[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tb[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tb[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tb[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tb[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tb[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tb[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="tbDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="tbDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="tmDgVisible = true" class="txbutton">
            参数Tm
          </el-button>
        </div>
        <el-dialog
          :modal="false"
          title="参数Tm列表"
          :visible.sync="tmDgVisible"
        >
          <el-form>
            <el-form-item label="请输入Tm[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数,如12.3"
                v-model="obj.Tm[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tm[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tm[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tm[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tm[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入Tm[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Tm[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="tmDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="tmDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="rmDgVisible = true" class="txbutton">
            参数RM25
          </el-button>
        </div>
        <el-dialog
          :modal="false"
          title="参数RM25列表"
          :visible.sync="rmDgVisible"
        >
          <el-form>
            <el-form-item label="请输入RM25[1]" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数，如12.3"
                v-model="obj.RM25[1]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入RM25[2]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.RM25[2]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入RM25[3]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.RM25[3]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入RM25[4]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.RM25[4]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入RM25[5]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.RM25[5]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入RM25[6]" :label-width="formLabelWidth">
              <el-input
                v-model="obj.RM25[6]"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="rmDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="rmDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="sgDgVisible = true" class="txbutton">
            单参数
          </el-button>
        </div>
        <el-dialog :modal="false" title="单参列表" :visible.sync="sgDgVisible">
          <el-form>
            <el-form-item label="请输入Q10" :label-width="formLabelWidth">
              <el-input
                placeholder="请输入参数，如12.3"
                v-model="obj.Q10"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入a" :label-width="formLabelWidth">
              <el-input
                v-model="obj.a"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入beta" :label-width="formLabelWidth">
              <el-input
                v-model="obj.beta"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="请输入K" :label-width="formLabelWidth">
              <el-input
                v-model="obj.K"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="Pmax" :label-width="formLabelWidth">
              <el-input
                v-model="obj.Pmax"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="p1" :label-width="formLabelWidth">
              <el-input
                v-model="obj.p1"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="p2" :label-width="formLabelWidth">
              <el-input
                v-model="obj.p2"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
            <el-form-item label="LAImax" :label-width="formLabelWidth">
              <el-input
                v-model="obj.LAImax"
                autocomplete="off"
                class="inputext"
              ></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="sgDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="sgDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="owDgVisible = true" class="txbutton">
            参数OW
          </el-button>
        </div>
        <el-dialog
          width="75%"
          :modal="false"
          title="参数OW列表"
          :visible.sync="owDgVisible"
          id="dialog"
        >
          <el-form class="form">
            <div class="box">
              <el-form-item
                label="请输入OW[1][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  placeholder="12.3"
                  v-model="obj.OW[0][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[1][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[0][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[1][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[0][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[1][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[0][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[1][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[0][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[1][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[0][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[2][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[1][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[2][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[1][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[2][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[1][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[2][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[1][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[2][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[1][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[2][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[1][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[3][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[2][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[3][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[2][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[3][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[2][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[3][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[2][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[3][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[2][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[3][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[2][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[4][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[3][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[4][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[3][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[4][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[3][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[4][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[3][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[4][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[3][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入OW[4][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.OW[3][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="owDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="owDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <div class="fiveArr">
          <el-button type="text" @click="cdiDgVisible = true" class="txbutton">
            参数Cdi
          </el-button>
        </div>
        <el-dialog
          width="75%"
          :modal="false"
          title="参数Cdi列表"
          :visible.sync="cdiDgVisible"
          id="dialog"
        >
          <el-form class="form">
            <div class="box">
              <el-form-item
                label="请输入Cdi[0][0]"
                :label-width="formLabelWidth"
              >
                <el-input
                  placeholder="12.3"
                  v-model="obj.Cdi[0][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[0][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[0][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[0][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[0][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[0][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[0][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[0][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[0][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[0][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[0][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[2][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[1][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[2][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[1][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[2][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[1][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[2][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[1][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[2][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[1][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[2][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[1][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[3][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[2][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[3][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[2][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[3][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[2][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[3][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[2][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[3][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[2][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[3][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[2][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[4][1]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[3][0]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[4][2]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[3][1]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[4][3]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[3][2]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[4][4]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[3][3]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[4][5]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[3][4]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
            <div class="box">
              <el-form-item
                label="请输入Cdi[4][6]"
                :label-width="formLabelWidth"
              >
                <el-input
                  v-model="obj.Cdi[3][5]"
                  autocomplete="off"
                  class="doubleparam"
                ></el-input>
              </el-form-item>
            </div>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="cdiDgVisible = false">取 消</el-button>
            <el-button type="primary" @click="cdiDgVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-col>
      <el-col :span="4">
        <el-button
          type="primary"
          @click="handleClick"
          style="width: 70px; height: 40px;"
          >提交</el-button
        >
      </el-col>
    </el-row>
    <div ref="ect1" style="width: 100%; height: 400px"></div>
    <div ref="ect2" style="width: 100%; height: 400px"></div>
    <div ref="ect3" style="width: 100%; height: 400px"></div>
  </div>
</template>

<script>
const ws = new WebSocket("ws://101.43.135.220:8080/websocket/aaa");
import * as echarts from "echarts";
export default {
  data() {
    return {
      cdiDgVisible: false,
      sgDgVisible: false,
      owDgVisible: false,
      pDgVisible: false,
      rmDgVisible: false,
      tmDgVisible: false,
      tbDgVisible: false,
      tuDgVisible: false,
      tlDgVisible: false,
      kDgVisible: false,
      obj: {
        p: [],
        k: [],
        Tol: [],
        Tou: [],
        Tb: [],
        Tm: [],
        RM25: [],
        Q10: "",
        a: "",
        Pmax: "",
        beta: "",
        K: "",
        p1: "",
        p2: "",
        LAImax: "",
        OW: [[], [], [], []],
        Cdi: [[], [], [], []],
      },
      formLabelWidth: "120px",
      p1: [],
      p2: [],
      p3: [],
      p4: [],
      p5: [],
      p6: [],
      p7: [],
      xdata: [],
      tmp: 1,
    };
  },
  methods: {
    subbutt() {
      let jsobj = JSON.stringify(this.obj);
      console.log(jsobj);
    },
    submitParas() {
      let jsonobj = JSON.stringify(this.obj);
      this.$axios({
        method: "post",
        url: "",
        params: {
          jsonobj,
        },
      }).then((res) => {
        console.log(res);
      });
    },
    handleClick() {
      ws.send(
        JSON.stringify({
          aaa: 111,
        })
      );
    },
    wsOpen(e) {
      console.log("Open", e);
    },
    wsError(e) {
      console.log("Error", e);
    },
    wsClose(e) {
      console.log("Close", e);
    },
    wsMessage(e) {
      console.log("Mess", e.data);
      let mydata = [],
        resdata = [];
      mydata = e.data;
      this.xdata.push(this.tmp);
      this.tmp += 1;
      // mydata.forEach(item => {
      //   // console.log(item,typeof item)
      //   resdata.push(item.split(" "))
      // })
      // console.log("mydata", data)
      resdata = mydata.split(" ");
      this.p1.push(resdata[0]);
      this.p2.push(resdata[1]);
      this.p3.push(resdata[2]);
      this.p4.push(resdata[3]);
      this.p5.push(resdata[4]);
      this.p6.push(resdata[5]);
      this.p7.push(resdata[6]);
      // resdata.forEach((value,index) => {
      //   xdata.push(value[0])
      //   p1.push(value[1])
      //   p2.push(value[2])
      //   p3.push(value[3])
      //   p4.push(value[4])
      //   p5.push(value[5])
      //   p6.push(value[6])
      //   p7.push(value[7])
      //   // console.log("datavalue",value,index)
      // })
      console.log(this.p1);
      var myChart1 = echarts.init(this.$refs.ect1);
      var myChart2 = echarts.init(this.$refs.ect2);
      var myChart3 = echarts.init(this.$refs.ect3);
      let option1 = {
        dataZoom: {
          type: "inside",
        },
        title: {
          text: "测试",
        },
        tooltip: {},
        toolbox: {
          show: true,
          feature: {
            dataZoom: {
              yAxisIndex: "none",
            },
            dataView: {
              readOnly: false,
            },
            saveAsImage: {},
          },
        },
        legend: {
          data: ["叶面积指数"],
        },
        xAxis: {
          data: this.xdata,
        },
        yAxis: {},
        series: [],
      };
      let option2 = {
        toolbox: {
          show: true,
          feature: {
            dataZoom: {
              yAxisIndex: "none",
            },
            dataView: {
              readOnly: false,
            },
            saveAsImage: {},
          },
        },
        legend: {
          data: ["茎干重", "叶干重", "果干重"],
        },
        dataZoom: {},
        title: {
          text: "测试",
        },
        tooltip: {},
        xAxis: {
          data: this.xdata,
        },
        yAxis: {},
        series: [],
      };
      let option3 = {
        dataZoom: {},
        toolbox: {
          show: true,
          feature: {
            dataZoom: {
              yAxisIndex: "none",
            },
            dataView: {
              readOnly: false,
            },
            saveAsImage: {},
          },
        },
        legend: {
          data: ["茎鲜重", "叶鲜重", "果鲜重"],
        },
        title: {
          text: "测试",
        },
        tooltip: {},
        xAxis: {
          data: this.xdata,
        },
        yAxis: {},
        series: [],
      };
      option1.series.push({
        name: "叶面积指数",
        data: this.p1,
        type: "line",
      });
      option2.series.push({
        name: "茎干重",
        data: this.p2,
        type: "line",
      });
      option2.series.push({
        name: "叶干重",
        data: this.p3,
        type: "line",
      });
      option2.series.push({
        name: "果干重",
        data: this.p4,
        type: "line",
      });
      option3.series.push({
        name: "茎鲜重",
        data: this.p5,
        type: "line",
      });
      option3.series.push({
        name: "叶鲜重",
        data: this.p6,
        type: "line",
      });
      option3.series.push({
        name: "果鲜重",
        data: this.p7,
        type: "line",
      });
      myChart1.setOption(option1);
      myChart2.setOption(option2);
      myChart3.setOption(option3);
    },
  },
  mounted() {
    ws.addEventListener("open", this.wsOpen.bind(this), false);
    ws.addEventListener("close", this.wsClose.bind(this), false);
    ws.addEventListener("message", this.wsMessage.bind(this), false);
    ws.addEventListener("error", this.wsError.bind(this), false);
  },
};
</script>

<style lang="less" scoped>
.el-col {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .txbutton {
    color: #000;
  }
  .fiveArr {
    width: 70px;
    height: 40px;
    border-radius: 15px;
    box-shadow: 0px 0px 5px #000;
    .txbutton {
      margin: 0 auto;
      display: block;
    }
  }
  .form {
    overflow: hidden;
    .box {
      float: left;
      .doubleparam {
        width: 130px;
      }
    }
  }
}
</style>